<?php
function makeFunction($file){
	$file = preg_replace('@//[$a-zA-Z0-9 \/\(\)\]\[\}\{!\.\^\#\&|\<\>\%\t:;\-_\+\*]+\r?\n@','',$file); //removes //-comments
	$file = str_ireplace(array('<?php','?>',"\n","\r","\t"),'',$file);
	//echo "$file\n";
	preg_match('@function [^\(]+@i',$file, $name);
	$file = preg_replace('@function [^\(]+@i','',$file,1);
	$name = str_ireplace(array('function',' '),'',$name[0]);
	preg_match('@\([^\)]*@i',$file,$args);
	$file = preg_replace('@\([^\)]*\)@i','',$file,1);
	$args = str_ireplace(array("(",' '),'',$args[0]);
	//$file = substr($file,strpos($file,'{')+1,strrpos($file,'}')-2); FIX THIS
	//echo "$name\n";
	//echo "$args\n";
	//echo "$file\n";
	$function = create_function($args,$file);
	return array($name,$function,array());
}
?>